/*Sets margin at top of each A4 page*/
@page {margin-top: 10%;
    margin-left:10%;
    @bottom-center{content:"Page " counter(page) " of " counter(pages);}
}

.slide:after{
    display: block;
    font-size:0.4em;
    position: absolute;
    bottom:0;
    left:92%;
    white-space: pre;
    content: "Slide " counter(slide) " ";
    counter-increment: slide;    
}

/*Data URL for image file generated from: 
 *http://software.hixie.ch/utilities/cgi/data/data
 */
.slide:before{
    display: block;
    position: absolute;
    left:100%;
    margin-left:1cm;
    margin-bottom:1cm;   
    content: url(
        qBf1AAAABGdBTUEAALGPC%2FxhBQAAB6VJREFUeF7t14FtxDAMADF32YyY9dw2OxgGTswAC
        UQJh%2F%2BfvffyECBAICnwFzgPAQIEkgIrOZWhCBAg8P%2F3lAIBAgSqAgJX3ay5CBDwC84
        NECDQFfALrrtbkxEYLyBw408AAIGugMB1d2syAuMFBG78CQAg0BUQuO5uTUZgvIDAjT8BAAS
        6AgLX3a3JCIwXELjxJwCAQFdA4Lq7NRmB8QICN%2F4EABDoCghcd7cmIzBeQODGnwAAAl0Bg
        evu1mQExgsI3PgTAECgKyBw3d2ajMB4AYEbfwIACHQFBK67W5MRGC8gcONPAACBroDAdXdr
        MgLjBQRu%2FAkAINAVELjubk1GYLyAwI0%2FAQAEugIC192tyQiMFxC48ScAgEBXQOC6uzUZ
        gfECa7%2FP8hAgQOCqwKEUC9zVrfo4AQKfwLHAHXqx1xIgQOC2wKlw3p7L9wkQILAFzhEQIJ
        AVELjsag1GgIDAuQECBLICApddrcEIEBA4N0CAQFZA4LKrNRgBAgLnBggQyAoIXHa1BiNAQO
        DcAAECWQGBy67WYAQICJwbIEAgKyBw2dUajAABgXMDBAhkBQQuu1qDESAgcG6AAIGsgMBlV2
        swAgQEzg0QIJAVELjsag1GgIDAuQECBLICApddrcEIEBA4N0CAQFZA4LKrNRgBAgLnBggQyA
        oIXHa1BiNAQODcAAECWQGBy67WYAQICJwbIEAgKyBw2dUajAABgXMDBAhkBQQuu1qDESAgcG
        6AAIGsgMBlV2swAgQEzg0QIJAVELjsag1GgIDAuQECBLICApddrcEIEBA4N0CAQFZA4LKrNR
        gBAgLnBggQyAqs%2FT7LQ4AAgasChxIrcFe36uMECHwCxwJ36MVeS4AAgdsCp8J5ey7fJ0CA
        wBY4R0CAQFZA4LKrNRgBAgLnBggQyAoIXHa1BiNAQODcAAECWQGBy67WYAQICJwbIEAgKyBw
        2dUajAABgXMDBAhkBQQuu1qDESAgcG6AAIGsgMBlV2swAgQEzg0QIJAVELjsag1GgIDAuQEC
        BLICApddrcEIEBA4N0CAQFZA4LKrNRgBAgLnBggQyAoIXHa1BiNAQODcAAECWQGBy67WYAQI
        CJwbIEAgKyBw2dUajAABgXMDBAhkBQQuu1qDESAgcG6AAIGsgMBlV2swAgQEzg0QIJAVELjs
        ag1GgIDAuQECBLICApddrcEIEBA4N0CAQFZA4LKrNRgBAgLnBggQyAoIXHa1BiNAQODcAAEC
        WQGBy67WYAQICJwbIEAgK7D2%2BywPAQIErgocSqzAXd2qjxMg8AkcC9yhF3stAQIEbgucCu
        ftuXyfAAECW%2BAcAQECWQGBy67WYAQICJwbIEAgKyBw2dUajAABgXMDBAhkBQQuu1qDESAg
        cG6AAIGsgMBlV2swAgQEzg0QIJAVELjsag1GgIDAuQECBLICApddrcEIEBA4N0CAQFZA4LKr
        NRgBAgLnBggQyAoIXHa1BiNAQODcAAECWQGBy67WYAQICJwbIEAgKyBw2dUajAABgXMDBAhk
        BQQuu1qDESAgcG6AAIGsgMBlV2swAgQEzg0QIJAVELjsag1GgIDAuQECBLICApddrcEIEBA4
        N0CAQFZA4LKrNRgBAgLnBggQyAoIXHa1BiNAQODcAAECWQGBy67WYAQICJwbIEAgKyBw2dUa
        jAABgXMDBAhkBQQuu1qDESAgcG6AAIGswNrvszwECBC4KnAosQJ3das%2BToDAJ3AscIde7L
        UECBC4LXAqnLfn8n0CBAhsgXMEBAhkBQQuu1qDESAgcG6AAIGsgMBlV2swAgQEzg0QIJAVEL
        jsag1GgIDAuQECBLICApddrcEIEBA4N0CAQFZA4LKrNRgBAgLnBggQyAoIXHa1BiNAQODcAA
        ECWQGBy67WYAQICJwbIEAgKyBw2dUajAABgXMDBAhkBQQuu1qDESAgcG6AAIGsgMBlV2swAg
        QEzg0QIJAVELjsag1GgIDAuQECBLICApddrcEIEBA4N0CAQFZA4LKrNRgBAgLnBggQyAoIXH
        a1BiNAQODcAAECWQGBy67WYAQICJwbIEAgKyBw2dUajAABgXMDBAhkBQQuu1qDESAgcG6AAI
        GsgMBlV2swAgQEzg0QIJAVELjsag1GgIDAuQECBLICa7%2FP8hAgQOCqwKHECtzVrfo4AQKf
        wLHAHXqx1xIgQOC2wKlw3p7L9wkQILAFzhEQIJAVELjsag1GgIDAuQECBLICApddrcEIEBA4
        N0CAQFZA4LKrNRgBAgLnBggQyAoIXHa1BiNAQODcAAECWQGBy67WYAQICJwbIEAgKyBw2dUa
        jAABgXMDBAhkBQQuu1qDESAgcG6AAIGsgMBlV2swAgQEzg0QIJAVELjsag1GgIDAuQECBLIC
        ApddrcEIEBA4N0CAQFZA4LKrNRgBAgLnBggQyAoIXHa1BiNAQODcAAECWQGBy67WYAQICJwb
        IEAgKyBw2dUajAABgXMDBAhkBQQuu1qDESAgcG6AAIGsgMBlV2swAgQEzg0QIJAVELjsag1G
        gIDAuQECBLICApddrcEIEBA4N0CAQFZA4LKrNRgBAmu%2Fz%2FIQIEDgqsChFgvc1a36OAE
        Cn8ChwP0CnzG6O7te89cAAAAASUVORK5CYII%3D);
}

/*Removes controls from window*/
div#controls{display:none;}
div#footer{display:none;}

/*Sets up slides so that 3 appear on each A4 page*/
.slide{border:1px solid black;
    min-height:7cm;
    width:9cm;
    margin-bottom:1cm;
    page-break-inside:avoid;
    position:relative;   
}

/*Specifying generic font family for all text on slides*/
.slide h1, h2, ul, p {font-family:"Helvetica","Helvetica Bold", sans-serif;}

/*Aligning heading text to centre of slides*/
.slide h1, h2 {text-align:center;
    font-size:1em;}

/*Moves all headings to top of each slide*/
.slide h1 {margin-top:0;
    margin-bottom:0}

/*Sets default font size for slide*/
.slide ul, p{font-size:0.7em;}
pre, code{font-size:0.65em;}
.slide pre{margin-top:0cm;
    margin-bottom:0cm;}

/*Sets default image sizes for each slide*/
img{width:15em;
    height:15em;}

/*Creates font structure for bulleted/numbered lists on slides*/
.slide ul, ol {margin-left: 2em;
    margin-right: 2em;}
.slide li {margin-top: 0.75em; margin-right: 0;}
.slide ul ul ul {font-size:1em;}
.slide ul ul li {margin: .2em;}